package com.hhsjtest.bus_spec.itemdata

import android.view.Gravity
import com.hhsjdesign.dynamicui.core.property.item.ImageViewProperty
import com.hhsjdesign.dynamicui.core.property.ViewBaseProperty
import com.hhsjdesign.dynamicui.core.property.viewdata.ItemViewData

class JinNiuProfileItemWidgetData : ItemViewData {
    constructor() {
        //root0

        this.type = "linear_h"
        this.deep = 0
        this.index = 0
        this.name = "frame0_0"
        this.property = ViewBaseProperty().apply {
            this.padding[0] = 0
            this.gravity = Gravity.CENTER_VERTICAL
        }

        this.treeList = ArrayList()

        this.treeList!!.add(ItemViewData().apply {
            this.type = "image"
            this.deep = 1
            this.index = 0
            this.name = "image1_0"
            this.property = ImageViewProperty(1, "image").apply {
                this.size[0] = 0
                this.size[1] = 100
                this.size[0] = 0
                this.size[1] = 100
                this.margin[0] = 30
                this.margin[1] = 30
                this.margin[2] = 30
                this.margin[3] = 30
                this.radius[0] = 50f
                this.radius[1] = 50f
                this.radius[2] = 50f
                this.radius[3] = 50f
            }
        })

        this.treeList!!.add(ItemViewData().apply {
            this.type = "linear_v"
            this.deep = 1
            this.index = 1
            this.name = "linear1_1"
        })

        this.treeList!!.add(ItemViewData().apply {
            this.type = "image"
            this.deep = 1
            this.index = 2
            this.name = "image1_2"
            this.property = ImageViewProperty(1, "header").apply {

            }
        })

    }

}